package com.ddwl.goods.model;

import com.ddwl.common.dao.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


/**
 * @author hemiaojun
 * @Date
 */
@Getter
@Setter
@Table(name="discount_item")
public class DiscountItem extends BaseModel {

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty(value = "店铺id")
    private String shopId;

    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private String itemId;

    /**
     * 折扣价格
     */
    @ApiModelProperty(value="折扣价格")
    private BigDecimal discountPrice;

    /**
     * 商品佣金
     */
    @ApiModelProperty(value="商品佣金")
    private BigDecimal itemCommission;

    /**
     * 折扣
     */
    @ApiModelProperty(value="折扣")
    private BigDecimal discount;

    /**
     * 库存
     */
    @ApiModelProperty(value="库存")
    private Integer stock;

    /**
     * 状态：0:进行中,1:结束
     */
    @ApiModelProperty(value = "状态：0:进行中,1:结束")
    private Integer status;

    /**
     * 订单数量
     */
    @ApiModelProperty(value="订单数量")
    private Integer orderNum;

    /**
     * 销量
     */
    @ApiModelProperty(value="销量")
    private Integer sales;

    /**
     * 订单金额
     */
    @ApiModelProperty(value="订单金额")
    private BigDecimal orderAmount;

    /**
     * 浏览量
     */
    @ApiModelProperty(value = "浏览量")
    private Integer views;
}